<?php
namespace app\ausadmin\controller;
use app\ausadmin\controller\Common;
use think\Controller;
use think\Db;
use think\Request;
use think\Config;
use think\Session;
use think\Cookie;
use Godok\Org\Adminauth;
class Logs extends Common
{
	public function index(){

		$pages = 20;
		$where = '';
		$pageParam    = ['query' =>[]];
		$list = Db::name('logs')->where('oid',0)->order('create_time desc')->paginate($pages, false, $pageParam);
		$data = $list->all();
		$o ='operator';
		foreach ($data  as $k=>$v) {
				$data2 = Db::name('admin')->where(['id'=>$v['userid'],])->find();
				$v['name'] = $data2['username'];
				$list[$k] = $v;
		}

		//var_dump($list);die;
		$this->assign('list',$list);
		return $this->fetch();
	}
}